<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/customer/withdrawals/list" id="searchForm">
		<div class="col-md-12">
			<div class="row">
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-4 control-label">${_res["customer.withdrawals.applyuser"]}</label>
						<div class="col-md-8">
					     <input type="text" class="form-control" name="customer.l_showname" placeholder="${_res['customer.withdrawals.applyuser']}" value="${paramMap['customer.l_showname']}" />
						</div>
					</div>
				</div>

				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-4 control-label">${_res["customer.withdrawals.apply.fromdate"]}</label>
						<div class="col-md-8">
								<input type="text" class="laydate-icon form-control layer-date"
									onclick="laydate()" name="customerWithdrawalsQueue.gt_applyDate"
									placeholder="${_res['customer.withdrawals.apply.fromdate']}"
									value="${paramMap['customerWithdrawalsQueue.gt_applyDate']}" />
						</div>
					</div>
				</div>
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-4 control-label">${_res["customer.withdrawals.apply.enddate"]}</label>
						<div class="col-md-8">
								<input type="text" class="laydate-icon form-control layer-date"
									onclick="laydate()" name="customerWithdrawalsQueue.le_applyDate"
									placeholder="${_res['customer.withdrawals.apply.enddate']}"
									value="${paramMap['customerWithdrawalsQueue.le_applyDate']}" />
						</div>
					</div>
				</div>
		   </div>
		   <div class="row">
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-4 control-label">${_res["customer.withdrawals.status"]}</label>
						<div class="col-md-8">
						  <#dict type="select" class="form-control"
								name="customerWithdrawalsQueue.f_status" dictCode="WITHDRAWALS_STATUS"
								defaultValue="${paramMap['customerWithdrawalsQueue.f_status']}"/><br>
						</div>
					</div>
				</div>

				<div class="col-md-2">
					<div class="form-group">
						<% if(hasPrivilegeUrl("withdrawals_list")){ %>
						<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
							<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
						</button>
						<% } %>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>

<div class="row searchLineWrap">
						
	<% if(hasPrivilegeUrl("/admin/withdrawals/export")){ %>
		<p><a href="javascript:void(0);"  class="btn btn-primary pull-left">${_res["system.export"]}</a><div class="clearfix"></div></p>
	<% } %>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>${_res["customer.withdrawals.applyuser"]}</th>
				<th>${_res["customer.withdrawals.applytime"]}</th>
				<th>${_res["customer.withdrawals.applyamount"]}</th>
				<th>${_res["customer.withdrawals.status"]}</th>
				<th>${_res["customer.withdrawals.processedBy"]}</th>
				<th>${_res["customer.withdrawals.processedTime"]}</th>
				<th>${_res["customer.withdrawals.processedReason"]}</th>
				<th>${_res["system.operator"]}</th>
			</tr>
		</thead>
		<tbody>
			<%for (withdrawalsQueue in splitPage.list!){%>
			<tr class="gradeC">
				<td><#cust customerId="${withdrawalsQueue.userid!}"/>&nbsp;&nbsp;&nbsp;${withdrawalsQueue.showname!}</td>
				<td>${withdrawalsQueue.applyTime!}</td>
				<td>${withdrawalsQueue.amount!}</td>
				<td><#dict type="lable" value="${withdrawalsQueue.status!}" dictCode="WITHDRAWALS_STATUS" /></td>
				<td><#user userId="${withdrawalsQueue.processedBy!}" cloumn="fullname"/></td>
				<td>${withdrawalsQueue.processedTime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
				<td>${withdrawalsQueue.processedReason!}</td>
				<td>
				 <% if(hasPrivilegeUrl("Withdrawals_Verify")){%>
				    <%if (withdrawalsQueue.status! == "0"){%>
               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/customer/withdrawals/edit/${withdrawalsQueue.id!}')">${_res["user.review.check"]}</button>
            	  	 <%}%>
            	   <%}%>
            	 </td>
			</tr>
			<%}%>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="searchForm" /></div>
	<#nav />
</div>

<script>
 function downloaddetail(){
	var url = "/admin/withdrawals/export";
	var data = "filename=withdrawals";
	ajaxDownload(url,"searchForm",data);
	return true;
  };
</script>